From: Keir Fraser Date: Thu, 18 Jun 2009 09:26:28 +0000 (+0100) Subject: xendomains script: Small fix X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13733 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=548f4b1ecd793880a0b3c3c0876508e79c71fdc7;p=xen.git xendomains script: Small fix From: Fabian Zimmermann Signed-off-by: Keir Fraser --- diff --git a/tools/hotplug/Linux/init.d/xendomains b/tools/hotplug/Linux/init.d/xendomains index e353441bd5..70b5b8fdcf 100644 --- a/tools/hotplug/Linux/init.d/xendomains +++ b/tools/hotplug/Linux/init.d/xendomains @@ -182,11 +182,11 @@ rdnames() parseln() { - if [[ "$1" =~ "\(domain" ]]; then + if [[ "$1" =~ '(domain' ]]; then name=;id= - else if [[ "$1" =~ "\(name" ]]; then + else if [[ "$1" =~ '(name' ]]; then name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/') - else if [[ "$1" =~ "\(domid" ]]; then + else if [[ "$1" =~ '(domid' ]]; then id=$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/') fi; fi; fi